Rangers came from behind to draw with Motherwell, leaving Pedro Caixinha's side 10 points behind second-placed Aberdeen in the Scottish Premiership.